package com.yan.pojo3;

public class Client {
    public static void main(String[] args) {
        //真是角色
        Host host = new Host();

        ProxyInvocationhandler ins = new ProxyInvocationhandler();

        ins.setRent(host);
        Rent proxy = (Rent)ins.getProxy();
        proxy.add();
    }



}
